package com.daka.vo.response;

import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * Created by yangx
 * CreateTime: 2016/12/12 19:44
 */
@Data
@ToString
public class StatisticsSimpVo {

    private BigDecimal total;

    private Integer number;

    public static StatisticsSimpVo build(BigDecimal total, Integer number) {
        StatisticsSimpVo teamSimpVo = new StatisticsSimpVo();
        teamSimpVo.setNumber(number);
        teamSimpVo.setTotal(total.divide(BigDecimal.valueOf(100)));
        return teamSimpVo;
    }
}
